<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="Access-Control-Allow-Origin" content="*" />
    <title>平顶山学院-基层党建管理apk</title>
    <script type="text/javascript" src="js/jquery-3.3.1.min.js"></script>
    <style type="text/css">
        #divframe {
            border: 1px solid #999;
            width: 500px;
            margin: 0 auto;
        }

        .loadTitle {
            background: #CCC;
            height: 30px;
        }
    </style>
    <script type="text/javascript">
        var init = function () {
            $.getJSON("./data.json", function (data) {
                $.each(data, function (i, item) {
                    if (i == 0) {
                        var nvers = document.getElementById("nvers");
                        nvers.innerText = "最新版本：" + item.version;
                        $("#down").append( "<span>" +item.upgradeTime+"("+ item.size+")</span>");
                        item.fix.forEach(element => {
                            $("#nlog").append("<li>" + element + "</li>");
                        });
                    }else{
                        $("#disp").append("<li><span>点击下载：<a href=\"" + item.url + "\">" + item.name +
                        "</a>更新时间：" +item.upgradeTime+"("+ item.size+")</span></li>");
                    }
                   
                });
            });
        }
    </script>
</head>

<body onload="init()">
    <center>
        <div>
            <img src="./icon-96-xhdpi.png" style="margin-top: 50px;">
            <br>
            <h2 style="text-align: center;">安卓客户端</h2>
            <span>
                点击下载：
                <a href="./app-pingdingshanPartyBuild.apk" title="Upload 平顶山学院-基层党建管理.apk">平顶山学院-基层党建管理.apk</a>
            </span>
            <p id="nvers">版本：</p>
             <p id="down">更新时间：</p>
            <p>或 扫描下方二维码下载</p>
            <div id="dialog"></div>
            <img src="./party_qrcode.png">
        </div>
        <div style="text-align: left;width: 500px;">
            <ul id="nlog">
                <h2>更新内容：</h2>

            </ul>
        </div>
        </div>
        <div>
            <h3>历史版本</h3>
            <ul id="disp">

            </ul>

        </div>
    </center>
</body>

</html>